﻿#ifndef AGREEAPPLICATIONDIALOG_H
#define AGREEAPPLICATIONDIALOG_H

#include <QDialog>
#include <QMouseEvent>

namespace Ui {
class AgreeApplicationDialog;
}

class AgreeApplicationDialog : public QDialog
{
    Q_OBJECT

public:
    explicit AgreeApplicationDialog(const QString &email,QWidget *parent = nullptr);
    ~AgreeApplicationDialog();
    void setNoteName(const QString &notename);
signals:
    void finished();
    void agreeApplication(const QString &email,const QString & notename);
protected:
    void mousePressEvent(QMouseEvent* event);
    void mouseMoveEvent(QMouseEvent* event);
    void mouseReleaseEvent(QMouseEvent* event);
private:
    Ui::AgreeApplicationDialog *ui;
    bool isDragging=false;
    QPoint lastPos;
    QString email;
};

#endif // AGREEAPPLICATIONDIALOG_H
